﻿using Microsoft.AspNetCore.Authorization;
using Microsoft.AspNetCore.Mvc;
using Zhp.Api.Attributes;
using Zhp.IService.Sys;

namespace Zhp.Api.Controllers.Workflow
{
    [Route("api/[controller]/[action]")]
    [ApiController]
    [ApiGroup(GroupName = ApiGroupEnum.Workflow)]
    [SeedMenu(MenuGroup = ApiGroupEnum.Workflow, Name = "流程管理", Order = 1, RouterName = "workflowManager", WebFilePath = "workflow/index", Icon = "wf")]
    public class WorkflowController : Controller
    {
        protected readonly ISysUserService _sysUserSvc;
        protected readonly ISysRoleService _sysRoleSvc;
        public WorkflowController(ISysUserService SysUser, ISysRoleService sysRoleSvc)
        {
            _sysUserSvc = SysUser;
            _sysRoleSvc = sysRoleSvc;
        }

        /// <summary>
        /// 流程配置页面入口
        /// </summary>
        /// <returns></returns>
        [HttpGet]
        [AllowAnonymous]
        public IActionResult Index()
        {
            return View("~/Pages/_Host.cshtml");
        }
    }
}
